<?php

/**
 * WebServiceLogic
 * @package model
 * @subpackage logic
 */
class WebServiceClienteLogic {

    private $webserv;

    function __construct() {

        $this->webserv = new SoapClient(null, array(
            'location' => WEBSERVICE,
            'uri' => PATH_URL,
            'trace' => 1));
    }

    public function recuperarSenha($cpf, $PATH_URL) {
        $result = $this->webserv->recuperarSenha($cpf, $PATH_URL);
        $object = simplexml_load_string($result);
        $object->msg = utf8_decode($object->msg);
        return $object;
    }

}

?>